
def internal_1():
  """ C1. Internal call DN1 to DN3, release DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.ReleaseCall()

def internal_2():
  """ C2. Internal call DN1 to DN3, abnormal release DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone1.ReleaseCall()

 
def internal_12():
  """ C12. Internal call DN1 to  DN2, two step transfer to DN3, release DN3"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(DN3)
  SipPhone3.AnswerCall()
  SipPhone2.CompleteTransfer()
  SipPhone3.ReleaseCall()

def internal_13():
  """ C13. Internal call DN1 to  DN2, tinit to DN3, abnormal release DN2, rel DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(DN3)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

def internal_14():
  """ C14. Internal call DN1 to  DN2, tinit to DN3, rel DN1, DN3 ans, DN2 rel"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(DN3)
  SipPhone1.ReleaseCall()
  SipPhone3.AnswerCall()
  SipPhone2.ReleaseCall()

def internal_15():
  """ C15. Internal call DN1 to DN2, two step transfer to DN3, compl bef consul party answer"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(DN3)
  SipPhone2.CompleteTransfer()
  SipPhone3.AnswerCall()
  SipPhone1.ReleaseCall()

def internal_16():
  """ C16. Internal call, two step transfer to DN3, completed before consul party answer, abnor"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(DN3)
  SipPhone2.CompleteTransfer()
  SipPhone1.ReleaseCall()


def internal_35():
  """ C35. Internal call DN1 to DN2, Internal conference to DN3, release DN1, DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone2.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def internal_36():
  """ C36. Internal call DN1 to DN2, DN2 cinit conference to DN3, abnorl release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(DN3)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()


def internal_55():
  """CR1. DN1 call to DN2, DN1 transfer to DN3, release DN3"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone3.AnswerCall()
  SipPhone1.CompleteTransfer()
  SipPhone3.ReleaseCall()

def internal_56():
  """CR2. DN1 call to DN2, DN1 tinit to DN3, abn release DN1, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone1.ReleaseCall()
  SipPhone1.RetrieveCall()
  SipPhone1.ReleaseCall()

def internal_57():
  """CR3. DN1 call to DN2, DN1 tinit to DN3, rel DN2, DN3 ans, rel DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone2.ReleaseCall()
  SipPhone3.AnswerCall()
  SipPhone1.ReleaseCall()

def internal_58():
  """CR4. DN1 call to DN2, DN1 tinit to DN3, abn rel DN1, release DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def internal_59():
  """CR5. DN1 call to DN2, DN1 tinit to DN3,  rel DN2, abn release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

def internal_60():
  """CR6. DN1 call to DN2, DN1 blind to DN3, release DN3"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone1.CompleteTransfer()
  SipPhone3.AnswerCall()
  SipPhone3.ReleaseCall()

def internal_61():
  """CR7. DN1 call to DN2, DN1 blind  to DN3,abn release DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateTransfer(DN3)
  SipPhone1.CompleteTransfer()
  SipPhone2.ReleaseCall()


def internal_89():
  """CR35. DN1 call to DN2, DN1 conference to DN3, release DN1, DN3"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone1.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone3.ReleaseCall()

def internal_90():
  """CR36. DN1 call to DN2, DN1 cinit to DN3, abnormal release DN1, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone1.ReleaseCall()
  SipPhone1.RetrieveCall()
  SipPhone1.ReleaseCall()

def internal_91():
  """CR37. DN1 call to DN2, DN1 cinit to DN3, release DN1, release DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def internal_92():
  """CR38. DN1 call to DN2, DN1 cinit to DN3, release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

def internal_93():
  """CR39. DN1 call to DN2, DN1 conference to DN3, release DN1, DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone1.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def internal_94():
  """CR40. DN1 call to DN2, DN1 conference to DN3, release DN2, DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone1.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  SipPhone1.CompleteConference()
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()


